using System;
using System.Collections.Generic;
using System.Text;
using Hoshimi._TSP_;

namespace Hoshimi._Map_._TSP_.MyTSP.AI
{
	public class ClusterCity : City
	{
		#region Variables
		
		protected Cluster mCluster = null;

		#endregion
		
		#region Getters & Setters
		
		public Cluster Cluster { get { return this.mCluster; } }

		#endregion
		
		#region Methods
		
		public override int Distance(City city)
		{
			return this.mCluster.GetCost(((ClusterCity) city).mCluster);	
		}

		#endregion

		#region Ctor

		public ClusterCity(Cluster cluster)
			: base()
		{
			this.mCluster = cluster;
			this.mLocation = cluster.Barycenter;
		}

		#endregion
	}
}
